import request from "./request";


/**
 * @description 产品API 
 */

//获取产品类型
export const goodstype = (isLoding=false)=> request({
	url:'/earthwork/business/goodstype',
	method:'get',
},isLoding)

//获取产品列表-----By类型 data={id:0}  id=0 为全查
export const goods = (data,isLoding=false)=> request({
	url:'/earthwork/business/goods',
	method:'get',
	data
},isLoding)

// 获取产品详情
export const goodsDetail = (data,isLoding=false)=> request({
	url:'/earthwork/business/goodsdetail',
	method:'get',
	data
},isLoding)

// 获取推荐商品
export const recommendGoods = (isLoding=false)=> request({
	url:'/earthwork/business/goods1',
	method:'get',
},isLoding)